package VN.EDU.IMIC.DEVELOPER.NGUYENTHUYOANH_LV1_06;

public class Models {
	public void SoChanLe(EvenOdd obj_evenodd)
	{
		for(int i=0;i<=obj_evenodd.getA();i++)
		{
			switch (obj_evenodd.getLoaiso())
			{
			case 1: if(i%2!=0)
				System.out.println(i);break;
			case 2: if(i%2==0)
				System.out.println(i);break;
			}
		}
		
	}

}
